package handler

import "google.golang.org/protobuf/reflect/protoreflect"

type IPlayerContext interface {
	GetId() int64
	GetServerZone() int32
	GetCurrMsgId() int32
	SetCurrMsgId(messageId int32)

	WriteProto(cmd int32, message protoreflect.ProtoMessage, messageId int32)
	WriteBytes(cmd int32, message []byte, messageId int32)
	IsLogin() bool
	/**
	 * 在调用CMD处理器之前做的处理
	 */
	// default void beforeInvokeCmd() {}
}
